package com.ffcc.fitness.trade.pojo.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class Trade {
    private Long tradeId;
    private String equipmentName;
    private String description;
    private BigDecimal price;
    private Integer quantity;
    // 器械类型：NEW - 新品器械；USED - 二手器械
    private String equipmentType;
    // 成色等级（仅二手器械需要）
    private String conditionLevel;
    private Long merchantId;
    private Long userId;
    private List<String> images;
    // 状态：AVAILABLE - 可用；UNAVAILABLE - 不可用
    private String status;

//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}

